package com.tarena.lbs.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    //所有枚举类的实例必须放在最上面;
    SYSTEM_ERROR(9000, "系统异常"),
    UNKNOWN_ERROR(9999, "未知错误"),
    NULL_STORE(4001, "店铺不存在"),
    BUSINESSNAME_ALREADY_EXISTS(5001, "商家名称已存在"),
    PICTURE_BIND_ERROR(6000, "图片绑定失败"),
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAILED(3000, "操作失败"),
    VALIDATE_ERROR(3001, "参数校验失败"),
    DATA_UNEXISTS(3002, "请求数据不存在"),
    USERNAME_ALREADY_EXISTS(3003, "用户名被占用"),
    USER_NOT_LOGIN(3006, "用户未登录或认证已过期"),
    USER_PERMISSION_DENIED(3007, "用户权限不足"),
    PASSWORD_ERROR(3004, "用户名或密码错误"),
    USERNAME_ERROR(3005, "用户名或密码错误");

    private Integer code;
    private String message;
}
